package com.cn.mmd.model;

import java.util.ArrayList;
import java.util.List;

public class SuggestionFeedbackExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public SuggestionFeedbackExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andSuggestionIdIsNull() {
            addCriterion("suggestion_id is null");
            return (Criteria) this;
        }

        public Criteria andSuggestionIdIsNotNull() {
            addCriterion("suggestion_id is not null");
            return (Criteria) this;
        }

        public Criteria andSuggestionIdEqualTo(Integer value) {
            addCriterion("suggestion_id =", value, "suggestionId");
            return (Criteria) this;
        }

        public Criteria andSuggestionIdNotEqualTo(Integer value) {
            addCriterion("suggestion_id <>", value, "suggestionId");
            return (Criteria) this;
        }

        public Criteria andSuggestionIdGreaterThan(Integer value) {
            addCriterion("suggestion_id >", value, "suggestionId");
            return (Criteria) this;
        }

        public Criteria andSuggestionIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("suggestion_id >=", value, "suggestionId");
            return (Criteria) this;
        }

        public Criteria andSuggestionIdLessThan(Integer value) {
            addCriterion("suggestion_id <", value, "suggestionId");
            return (Criteria) this;
        }

        public Criteria andSuggestionIdLessThanOrEqualTo(Integer value) {
            addCriterion("suggestion_id <=", value, "suggestionId");
            return (Criteria) this;
        }

        public Criteria andSuggestionIdIn(List<Integer> values) {
            addCriterion("suggestion_id in", values, "suggestionId");
            return (Criteria) this;
        }

        public Criteria andSuggestionIdNotIn(List<Integer> values) {
            addCriterion("suggestion_id not in", values, "suggestionId");
            return (Criteria) this;
        }

        public Criteria andSuggestionIdBetween(Integer value1, Integer value2) {
            addCriterion("suggestion_id between", value1, value2, "suggestionId");
            return (Criteria) this;
        }

        public Criteria andSuggestionIdNotBetween(Integer value1, Integer value2) {
            addCriterion("suggestion_id not between", value1, value2, "suggestionId");
            return (Criteria) this;
        }

        public Criteria andStudentIdIsNull() {
            addCriterion("student_id is null");
            return (Criteria) this;
        }

        public Criteria andStudentIdIsNotNull() {
            addCriterion("student_id is not null");
            return (Criteria) this;
        }

        public Criteria andStudentIdEqualTo(String value) {
            addCriterion("student_id =", value, "studentId");
            return (Criteria) this;
        }

        public Criteria andStudentIdNotEqualTo(String value) {
            addCriterion("student_id <>", value, "studentId");
            return (Criteria) this;
        }

        public Criteria andStudentIdGreaterThan(String value) {
            addCriterion("student_id >", value, "studentId");
            return (Criteria) this;
        }

        public Criteria andStudentIdGreaterThanOrEqualTo(String value) {
            addCriterion("student_id >=", value, "studentId");
            return (Criteria) this;
        }

        public Criteria andStudentIdLessThan(String value) {
            addCriterion("student_id <", value, "studentId");
            return (Criteria) this;
        }

        public Criteria andStudentIdLessThanOrEqualTo(String value) {
            addCriterion("student_id <=", value, "studentId");
            return (Criteria) this;
        }

        public Criteria andStudentIdLike(String value) {
            addCriterion("student_id like", value, "studentId");
            return (Criteria) this;
        }

        public Criteria andStudentIdNotLike(String value) {
            addCriterion("student_id not like", value, "studentId");
            return (Criteria) this;
        }

        public Criteria andStudentIdIn(List<String> values) {
            addCriterion("student_id in", values, "studentId");
            return (Criteria) this;
        }

        public Criteria andStudentIdNotIn(List<String> values) {
            addCriterion("student_id not in", values, "studentId");
            return (Criteria) this;
        }

        public Criteria andStudentIdBetween(String value1, String value2) {
            addCriterion("student_id between", value1, value2, "studentId");
            return (Criteria) this;
        }

        public Criteria andStudentIdNotBetween(String value1, String value2) {
            addCriterion("student_id not between", value1, value2, "studentId");
            return (Criteria) this;
        }

        public Criteria andFeedbackInformationIsNull() {
            addCriterion("feedback_information is null");
            return (Criteria) this;
        }

        public Criteria andFeedbackInformationIsNotNull() {
            addCriterion("feedback_information is not null");
            return (Criteria) this;
        }

        public Criteria andFeedbackInformationEqualTo(String value) {
            addCriterion("feedback_information =", value, "feedbackInformation");
            return (Criteria) this;
        }

        public Criteria andFeedbackInformationNotEqualTo(String value) {
            addCriterion("feedback_information <>", value, "feedbackInformation");
            return (Criteria) this;
        }

        public Criteria andFeedbackInformationGreaterThan(String value) {
            addCriterion("feedback_information >", value, "feedbackInformation");
            return (Criteria) this;
        }

        public Criteria andFeedbackInformationGreaterThanOrEqualTo(String value) {
            addCriterion("feedback_information >=", value, "feedbackInformation");
            return (Criteria) this;
        }

        public Criteria andFeedbackInformationLessThan(String value) {
            addCriterion("feedback_information <", value, "feedbackInformation");
            return (Criteria) this;
        }

        public Criteria andFeedbackInformationLessThanOrEqualTo(String value) {
            addCriterion("feedback_information <=", value, "feedbackInformation");
            return (Criteria) this;
        }

        public Criteria andFeedbackInformationLike(String value) {
            addCriterion("feedback_information like", value, "feedbackInformation");
            return (Criteria) this;
        }

        public Criteria andFeedbackInformationNotLike(String value) {
            addCriterion("feedback_information not like", value, "feedbackInformation");
            return (Criteria) this;
        }

        public Criteria andFeedbackInformationIn(List<String> values) {
            addCriterion("feedback_information in", values, "feedbackInformation");
            return (Criteria) this;
        }

        public Criteria andFeedbackInformationNotIn(List<String> values) {
            addCriterion("feedback_information not in", values, "feedbackInformation");
            return (Criteria) this;
        }

        public Criteria andFeedbackInformationBetween(String value1, String value2) {
            addCriterion("feedback_information between", value1, value2, "feedbackInformation");
            return (Criteria) this;
        }

        public Criteria andFeedbackInformationNotBetween(String value1, String value2) {
            addCriterion("feedback_information not between", value1, value2, "feedbackInformation");
            return (Criteria) this;
        }

        public Criteria andFeedbackUrlIsNull() {
            addCriterion("feedback_url is null");
            return (Criteria) this;
        }

        public Criteria andFeedbackUrlIsNotNull() {
            addCriterion("feedback_url is not null");
            return (Criteria) this;
        }

        public Criteria andFeedbackUrlEqualTo(String value) {
            addCriterion("feedback_url =", value, "feedbackUrl");
            return (Criteria) this;
        }

        public Criteria andFeedbackUrlNotEqualTo(String value) {
            addCriterion("feedback_url <>", value, "feedbackUrl");
            return (Criteria) this;
        }

        public Criteria andFeedbackUrlGreaterThan(String value) {
            addCriterion("feedback_url >", value, "feedbackUrl");
            return (Criteria) this;
        }

        public Criteria andFeedbackUrlGreaterThanOrEqualTo(String value) {
            addCriterion("feedback_url >=", value, "feedbackUrl");
            return (Criteria) this;
        }

        public Criteria andFeedbackUrlLessThan(String value) {
            addCriterion("feedback_url <", value, "feedbackUrl");
            return (Criteria) this;
        }

        public Criteria andFeedbackUrlLessThanOrEqualTo(String value) {
            addCriterion("feedback_url <=", value, "feedbackUrl");
            return (Criteria) this;
        }

        public Criteria andFeedbackUrlLike(String value) {
            addCriterion("feedback_url like", value, "feedbackUrl");
            return (Criteria) this;
        }

        public Criteria andFeedbackUrlNotLike(String value) {
            addCriterion("feedback_url not like", value, "feedbackUrl");
            return (Criteria) this;
        }

        public Criteria andFeedbackUrlIn(List<String> values) {
            addCriterion("feedback_url in", values, "feedbackUrl");
            return (Criteria) this;
        }

        public Criteria andFeedbackUrlNotIn(List<String> values) {
            addCriterion("feedback_url not in", values, "feedbackUrl");
            return (Criteria) this;
        }

        public Criteria andFeedbackUrlBetween(String value1, String value2) {
            addCriterion("feedback_url between", value1, value2, "feedbackUrl");
            return (Criteria) this;
        }

        public Criteria andFeedbackUrlNotBetween(String value1, String value2) {
            addCriterion("feedback_url not between", value1, value2, "feedbackUrl");
            return (Criteria) this;
        }

        public Criteria andFeedbackTimeIsNull() {
            addCriterion("feedback_time is null");
            return (Criteria) this;
        }

        public Criteria andFeedbackTimeIsNotNull() {
            addCriterion("feedback_time is not null");
            return (Criteria) this;
        }

        public Criteria andFeedbackTimeEqualTo(String value) {
            addCriterion("feedback_time =", value, "feedbackTime");
            return (Criteria) this;
        }

        public Criteria andFeedbackTimeNotEqualTo(String value) {
            addCriterion("feedback_time <>", value, "feedbackTime");
            return (Criteria) this;
        }

        public Criteria andFeedbackTimeGreaterThan(String value) {
            addCriterion("feedback_time >", value, "feedbackTime");
            return (Criteria) this;
        }

        public Criteria andFeedbackTimeGreaterThanOrEqualTo(String value) {
            addCriterion("feedback_time >=", value, "feedbackTime");
            return (Criteria) this;
        }

        public Criteria andFeedbackTimeLessThan(String value) {
            addCriterion("feedback_time <", value, "feedbackTime");
            return (Criteria) this;
        }

        public Criteria andFeedbackTimeLessThanOrEqualTo(String value) {
            addCriterion("feedback_time <=", value, "feedbackTime");
            return (Criteria) this;
        }

        public Criteria andFeedbackTimeLike(String value) {
            addCriterion("feedback_time like", value, "feedbackTime");
            return (Criteria) this;
        }

        public Criteria andFeedbackTimeNotLike(String value) {
            addCriterion("feedback_time not like", value, "feedbackTime");
            return (Criteria) this;
        }

        public Criteria andFeedbackTimeIn(List<String> values) {
            addCriterion("feedback_time in", values, "feedbackTime");
            return (Criteria) this;
        }

        public Criteria andFeedbackTimeNotIn(List<String> values) {
            addCriterion("feedback_time not in", values, "feedbackTime");
            return (Criteria) this;
        }

        public Criteria andFeedbackTimeBetween(String value1, String value2) {
            addCriterion("feedback_time between", value1, value2, "feedbackTime");
            return (Criteria) this;
        }

        public Criteria andFeedbackTimeNotBetween(String value1, String value2) {
            addCriterion("feedback_time not between", value1, value2, "feedbackTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}